package com.job.client.message.service;

import com.job.client.common.result.ResponseResult;
import com.job.client.message.pojo.ConnectItem;
import com.job.client.message.pojo.Message;
import com.job.client.message.pojo.MessageItem;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface MessageService {
    ResponseResult createMessage(String messageId);

    ResponseResult createConnect(String messageId,String connectId,String postsId);

    ResponseResult saveMessage(MessageItem messageItem , String messageId1, String connectId);

    ResponseResult getById(String userId);

    ResponseResult deleteById(String userId);

    ResponseResult uploadAvatar(MultipartFile file, HttpServletRequest request);

    ResponseResult connectIsExist(String messageId, String connectId,String postsId);

    ResponseResult clearNumber(String messageId, String connectId);
    public void pushMessage(String cid,String data);
    public void cleanMessage();

}
